package kr.sboard.web;


import java.io.File;
import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;

import kr.sboard.model.Board;
import kr.sboard.model.User;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;

public class UserAction   extends ActionSupport  implements Preparable,ModelDriven<User> {

    private static final Logger log = Logger.getLogger(BoardAction.class);
	
	private List<File> uploads = new ArrayList<File>();
    private List<String> uploadFileNames = new ArrayList<String>();
    private List<String> uploadContentTypes = new ArrayList<String>();
    
    private User user;  
	
	
	@Override
	public String execute() {
		return SUCCESS;
	}

	public String list() {
		return SUCCESS;
	}

	public String view() {
		return SUCCESS;
	}

	public String insert() {
		return SUCCESS;
	}

	public String update() {
		return SUCCESS;
	}

	public String delete() {
		return SUCCESS;
	}    
    
	
	@Override
	public User getModel() {
		return user;
	}

	@Override
	public void prepare() throws Exception {
		user = new User();
	}

	public List<File> getUploads() {
		return uploads;
	}

	public void setUploads(List<File> uploads) {
		this.uploads = uploads;
	}

	public List<String> getUploadFileNames() {
		return uploadFileNames;
	}

	public void setUploadFileNames(List<String> uploadFileNames) {
		this.uploadFileNames = uploadFileNames;
	}

	public List<String> getUploadContentTypes() {
		return uploadContentTypes;
	}

	public void setUploadContentTypes(List<String> uploadContentTypes) {
		this.uploadContentTypes = uploadContentTypes;
	}

	
}
